package com.changgou.goods.exception;



public class CustomException extends Exception {

    private Class clz;
    private String message;
    private Integer code;

    public CustomException() {
    }

    public CustomException(Class clz, String message, Integer code) {
        this.clz = clz;
        this.message = message;
        this.code = code;
    }

    public Class getClz() {
        return clz;
    }

    public void setClz(Class clz) {
        this.clz = clz;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
